<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	
	<script src="/weTall/static/js/jquery/jquery.js"></script>
	<script src="/weTall/static/js/jquery/plugins/jquery.tools.min.js"></script>
	<script src="/weTall/static/js/jquery/plugins/formvalidator.js"></script>
	<script src="/weTall/static/js/pinphp.js"></script>
	<script src="/weTall/static/js/admin.js"></script>
	<link rel="stylesheet" type="text/css" href="/weTall/static/css/admin/style.css" />
	<link href="/weTall/static/css/admin/style.css" rel="stylesheet"/>
	<link rel="stylesheet" type="text/css" href="/weTall/static/js/calendar/calendar-blue.css"/>
	<script type="text/javascript" src="/weTall/static/js/calendar/calendar.js"></script>	
	<title>管理中心</title>
	<script src="/weTall/static/js/jquery/plugins/listTable.js"></script>
	<script>
	$(function(){
		$('.J_tablelist').listTable();
	});
	</script>

<style>
.tdtitle {font-family: "宋体";
    height: 32px;
    line-height: 32px;
    padding-right: 5px;
    text-align: right;
    vertical-align: top;}

.tblist thead tr th, .tblist tbody tr.tblist_th td {
    background: url("/weTall/static/weixin/images/tblistthbg.gif") repeat-x scroll 0 0 transparent;
    border-right: 1px solid #DDDDDD;
    height: 30px;
    overflow: hidden;
    padding: 0 8px;
    text-align: center;
    white-space: nowrap;
}
.tblist tbody tr, .tbmodify .tblist tbody tr {
    background: none repeat scroll 0 0 #FFFFFF;
}
.tblist {
    border-left: 1px solid #DDDDDD;
    width: 100%;
}	
.tblist tbody tr, .tbmodify .tblist tbody tr {
    background: none repeat scroll 0 0 #FFFFFF;
}
.tblist tbody tr td, .tbmodify .tblist tbody tr td {
    border-bottom: 1px solid #DDDDDD;
    border-left: 0 solid #DDDDDD;
    border-right: 1px solid #DDDDDD;
    line-height: 18px;
    text-align: center;
}
.tblist tbody tr td {
    padding: 2px 4px;
}
.tbdetail {
    width: 100%;
}
.tbdetail td {
    background-color: #FFFFFF;
    height: 32px;
    line-height: 33px;
    padding: 3px 0 3px 5px;
   <!-- text-align: left;-->
}
.tbdetail .ltd {
    padding-left: 5px;
  text-align: left;
}
.tbdetail .rtd {
    padding-right: 5px;
   text-align: right;	
}
</style>
</head>

<form id="info_form" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<div class="J_panes">
        <div class="content_list pad_10">
        <div align="center" style="background:none repeat scroll 0 0 #E6F1F6;font-size:14px;font-weight:bold;padding:10px 0;">基本信息</div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbdetail">
        	 <tbody>
         		<tr>
                   <td width="10%" class="tdtitle" >账单单号：</td>
                   <td width="20%">{Lanrain:$account_master.billnum}</td>
                   <td width="10%" class="tdtitle">账单状态：</td>
                   <td width="20%" class="red"><?php foreach($account_status as $key=>$item){ if($account_master['status']==$key) echo $item; }?></td>
                   <td width="10%" class="tdtitle">账单总金额(元)：</td>
                   <td width="30%" class="red">{Lanrain:$account_master.totalamt}</td>
               </tr>
               <tr>
                   <td width="10%" class="tdtitle">结算扣率：</td>
                   <td width="20%" class="red">{Lanrain:$account_master.rate}</td>
                   <td width="10%" class="tdtitle">应结金额(元)：</td>
                   <td width="20%" class="red">{Lanrain:$account_master.yingjie}</td>
                   <td width="10%" class="tdtitle" >账单统计时间段：</td>
                   <td width="30%"><?php if($account_master['start_time']){ echo date('Y-m-d H:i:s',$account_master['start_time']); }?> -- <?php if($account_master['end_time']){ echo date('Y-m-d H:i:s',$account_master['end_time']); }?></td>
               </tr>
            </tbody>
        </table>
        <div align="center" style="background:none repeat scroll 0 0 #E6F1F6;font-size:14px;font-weight:bold;padding:10px 0;">商家信息</div>    
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbdetail">
            <tbody>
               <tr>
                   <td width="10%" class="tdtitle">商家名称：</td>
                   <td width="20%"><?php foreach($shopinfo as $item){ if($account_master['tokenTall']==$item['tokenTall']) echo $item['name']; } ?></td>
                   <td width="10%" class="tdtitle" >结账方式：</td>
                   <td width="20%">{Lanrain:$account_master.bankname}</td>
                   <td width="10%" class="tdtitle">账号：</td>
                   <td width="30%">{Lanrain:$account_master.account}</td>
               </tr>
               <tr>
                   <td width="10%" class="tdtitle" >商家收款人：</td>
                   <td width="20%">{Lanrain:$account_master.payee}</td>
                   <td width="10%" class="tdtitle">收款人手机：</td>
                   <td width="20%">{Lanrain:$account_master.mobile}</td>
                   <td width="10%" class="tdtitle"></td>
                   <td width="30%"></td>
               </tr>
            </tbody>
        </table>
		<div align="center" style="background:none repeat scroll 0 0 #E6F1F6;font-size:14px;font-weight:bold;padding:10px 0;">操作信息</div>    
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbdetail">
            <tbody>
                <tr>
                   <td width="10%" class="tdtitle" >生成：</td>
                   <td width="15%">{Lanrain:$account_master.gen}</td>
                   <td width="10%" class="tdtitle">生成时间：</td>
                   <td width="15%"><?php if($account_master['gen_time']){ echo date('Y-m-d H:i:s',$account_master['gen_time']); }?></td>
                   <td width="10%" class="tdtitle" >商城对账：</td>
                   <td width="15%">{Lanrain:$account_master.duizhang}</td>
                   <td width="10%" class="tdtitle">商城对账时间：</td>
                   <td width="15%"><?php if($account_master['duizhang_time']){ echo date('Y-m-d H:i:s',$account_master['duizhang_time']); }?></td>
               </tr>
               <tr>
                   <td width="10%" class="tdtitle" >付款：</td>
                   <td width="15%">{Lanrain:$account_master.pay}</td>
                   <td width="10%" class="tdtitle">付款时间：</td>
                   <td width="15%"><?php if($account_master['pay_time']){ echo date('Y-m-d H:i:s',$account_master['pay_time']); }?></td>
                   <td width="10%" class="tdtitle" >商家对账：</td>
                   <td width="15%">{Lanrain:$account_master.duizhang2}</td>
                   <td width="10%" class="tdtitle">商家对账时间：</td>
                   <td width="15%"><?php if($account_master['duizhang2_time']){ echo date('Y-m-d H:i:s',$account_master['duizhang2_time']); }?></td>
               </tr>
            </tbody>
        </table>
        <div align="center" style="background:none repeat scroll 0 0 #E6F1F6;font-size:14px;font-weight:bold;padding:10px 0;">账单明细</div>    
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tblist">
        	<thead>
            	<tr>
	                <th>序号</th>
	                <th>订单号</th>
	                <th>下单时间</th>
	                <th>订单状态</th>
	                <th>商品总额</th>
	                <th>订单总额</th>
            	</tr>
        	</thead>
            <tbody>
                <volist name='account_detail' id='vo' >
                <tr class="">
                	<td class="ltd">{Lanrain:$vo.itemno}</td>
                    <td class="ltd">{Lanrain:$vo.orderId}</td>
                    <td class="ltd">{Lanrain:$vo.add_time|date='Y-m-d H:i:s',###}</td>
                    <td class="ltd"><?php foreach($order_status as $key=>$item){ if($vo['status']==$key) echo $item; } ?></td>
                    <td class="red rtd">¥{Lanrain:$vo.goods_sumPrice}</td>
                    <td class="red rtd">¥{Lanrain:$vo.order_sumPrice}</td>
                </tr>
                </volist>   
            </tbody>
       </table>      
       </div>
       </div>
       
	   <div class="mt10" style="text-align:center;">
	   <if condition = "$account_master['status'] eq '0' or $account_master['status'] eq '2'">
           <a href="{Lanrain::U('Statistics/status',array('id'=>$account_master['id'],'status'=>'mall_confirm'))}"><input type="button" value="确认账单正确" id="dosubmit" name="dosubmit" class="btn btn_submit" ></a>
       <elseif condition = "$account_master['status'] eq '3'" />
           <a href="{Lanrain::U('Statistics/status',array('id'=>$account_master['id'],'status'=>'haspay'))}"><input type="button" value="确认已付款" id="dosubmit" name="dosubmit" class="btn btn_submit" ></a>
       </if>
	   <a href="{Lanrain::U('Statistics/index')}"><input type="button"  value=" 返回列表 " class="btn btn_cannel"></a>
	   </div>
	</div>
</div>
<input type="hidden" name="menuid"  value="{Lanrain:$menuid}"/>
<input type="hidden" name="id" value="{Lanrain:$account_master.id}" />
</form>
</body>
</html>
